home *** CD-ROM | disk | FTP | other *** search
/ ftp.mactech.com 2010 / ftp.mactech.com.tar / ftp.mactech.com / machack / Hacks97 / KlingonBGApp.sit / Klingon BG App / Source / timeUtil.c < prev    next >
Text File  |  1997-06-28  |  687b  |  37 lines

  1. // Source code for Klingon Clock.   Copyright (C) 1996-1997
  2. // Charles H. Hemstreet IV
  3. //
  4. // Started at MacHack 1996
  5. // Completed at MacHack 1997
  6. //
  7. // Best thanks to:
  8. // My wife Regie, son Chad and baby
  9. // Other thanks to Elden Wood and Bob Clark
  10. //
  11. // This code is distributed "as-is" and implies no warranty or guarantee.
  12.  
  13.  
  14. #ifndef __TIMEUTIL__
  15. #include "timeUtil.h"
  16. #endif
  17.  
  18. #include <OSUtils.h>
  19.  
  20.  
  21.  
  22.  
  23. void getTime(short cur_time[])
  24. {
  25.     DateTimeRec     myDateRec;   
  26.  
  27.     GetTime(&myDateRec);
  28.  
  29.     cur_time[0] = myDateRec.hour;
  30.     cur_time[1] = myDateRec.minute;
  31.     cur_time[2] = myDateRec.second;
  32.     cur_time[3] = myDateRec.year;
  33.     cur_time[4] = myDateRec.month;
  34.     cur_time[5] = myDateRec.dayOfWeek;
  35. }
  36.  
  37.